package com.luwanglin.eduservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.luwanglin.eduservice.entity.EduSubject;
import com.luwanglin.eduservice.entity.subject.SubjectNestedVo;
import com.luwanglin.eduservice.entity.subject.SubjectNode;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 课程科目 服务类
 * </p>
 *
 * @author testjava
 * @since 2021-05-10
 */
public interface EduSubjectService extends IService<EduSubject> {

    /**
     * add subject excel to database
     *
     * @param file
     */
    void saveSubject(MultipartFile file);

    List<SubjectNestedVo> nestedList();

    List<SubjectNode> nestedListByMap();

    List<SubjectNode> getSubjectTree();
}
